<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
		<title>Default Behavior</title>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="title" content="Samples" />
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<link rel="icon" href="../common/favicon.ico" type="image/x-icon" />
		<link rel="shortcut icon" href="../common/favicon.ico" type="image/x-icon" />
		<link rel="stylesheet" href="../common/css/style.css" type="text/css" media="screen" />

	</head>
	<body>
        <div class="header">
            <a class="logo" href="http://www.dhtmlx.com" title="DHTMLX homepage"></a>
            <div class="tittle-dhtmlx">DHTMLX Docs & Samples Explorer</div>
            <div class="search-field">
                <form action="http://docs.dhtmlx.com/doku.php" accept-charset="utf-8" id="dw__search"><div class="no"><input type="hidden" name="do" value="search" /><input type="text" id="qsearch__in" accesskey="f" name="id" title="Search" /><button type="submit">Search</button><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form>
            </div>
            <div class="buttons">
                <a class="doc_inact" href="../../../docsExplorer/index.html" title="DHTMLX Documentation homepage"></a>
                <a class="sample"></a>
            </div>
        </div>
        <div class="content">
            <div class="navigation-div">
                <a href="../../../docsExplorer/samples.html" class="navigation"><img src="../common/icons/file.gif" alt="" >All components</a>
                <div class="arrow"></div>
                <a href="../index.html" class="navigation"><img height="22" src="../common/icons/windows.gif" alt="" >dhtmlxWindows</a>
                <div class="arrow"></div>
                <a href="./index.html" class="navigation"><img src="../common/icons/none.gif" alt="" >Viewport Configuration</a>
            </div>
            <div style="display:block;">
                <h3>Default Behavior</h3>
            </div>
            <div class="navigation-div">
                <a href="#code" class="navigation view-source"><img src="../common/icons/source.gif" alt="" >View page source</a>
            </div>
            <div>
	By default the viewport is document.body
	<br>
	Several browsers need to improve body's style by setting its width and height to 100%
	<br>
	In this case a window will become movable on all the available document.body's space.
	<br>
	Besides, there is no need for you to call any other methods that will affect the viewport.
</div>
<br>
<input type="button" value="Open Demo" onclick="window.open('inc/01_default_demo.html');">
			
			
         </div>
    <div class="source">
        <div class="teg">Source</div>
        <div class="code" id="code">
		<div class="hl-main"><pre><span class="hl-code">&lt;</span><span class="hl-identifier">div</span><span class="hl-code">&gt;
</span><span class="hl-identifier">By</span><span class="hl-code"> </span><span class="hl-reserved">default</span><span class="hl-code"> </span><span class="hl-identifier">the</span><span class="hl-code"> </span><span class="hl-identifier">viewport</span><span class="hl-code"> </span><span class="hl-identifier">is</span><span class="hl-code"> </span><span class="hl-builtin">document</span><span class="hl-code">.</span><span class="hl-identifier">body</span><span class="hl-code">
&lt;</span><span class="hl-identifier">br</span><span class="hl-code">&gt;
</span><span class="hl-identifier">Several</span><span class="hl-code"> </span><span class="hl-identifier">browsers</span><span class="hl-code"> </span><span class="hl-identifier">need</span><span class="hl-code"> </span><span class="hl-identifier">to</span><span class="hl-code"> </span><span class="hl-identifier">improve</span><span class="hl-code"> </span><span class="hl-identifier">body</span><span class="hl-quotes">'</span><span class="hl-string">s style by setting its width and height to 100%
&lt;br&gt;
In this case a window will become movable on all the available document.body</span><span class="hl-quotes">'</span><span class="hl-identifier">s</span><span class="hl-code"> </span><span class="hl-identifier">space</span><span class="hl-code">.
&lt;</span><span class="hl-identifier">br</span><span class="hl-code">&gt;
</span><span class="hl-identifier">Besides</span><span class="hl-code">, </span><span class="hl-identifier">there</span><span class="hl-code"> </span><span class="hl-identifier">is</span><span class="hl-code"> </span><span class="hl-identifier">no</span><span class="hl-code"> </span><span class="hl-identifier">need</span><span class="hl-code"> </span><span class="hl-reserved">for</span><span class="hl-code"> </span><span class="hl-identifier">you</span><span class="hl-code"> </span><span class="hl-identifier">to</span><span class="hl-code"> </span><span class="hl-identifier">call</span><span class="hl-code"> </span><span class="hl-identifier">any</span><span class="hl-code"> </span><span class="hl-identifier">other</span><span class="hl-code"> </span><span class="hl-identifier">methods</span><span class="hl-code"> </span><span class="hl-identifier">that</span><span class="hl-code"> </span><span class="hl-identifier">will</span><span class="hl-code"> </span><span class="hl-identifier">affect</span><span class="hl-code"> </span><span class="hl-identifier">the</span><span class="hl-code"> </span><span class="hl-identifier">viewport</span><span class="hl-code">.
&lt;/</span><span class="hl-identifier">div</span><span class="hl-code">&gt;
&lt;</span><span class="hl-identifier">br</span><span class="hl-code">&gt;
&lt;</span><span class="hl-identifier">input</span><span class="hl-code"> </span><span class="hl-identifier">type</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">button</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-identifier">value</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">Open Demo</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-identifier">onclick</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">window.open('inc/01_default_demo.html');</span><span class="hl-quotes">&quot;</span><span class="hl-code">&gt;</span></pre></div>
        </div>
    <div class="footer">
        <div class="footer-logo"></div>
        <div class="copyright">Copyright &copy; 1998-2009 DHTMLX LTD.<br />All rights reserved.</div>
    </div>
	</body>
</html>